#ifndef XML_H
#define XML_H
//转包工具和打包工具都必须生成control.xml文件，为了复用代码，使用类。
//author by mencius
#include "textedit.h"
#include "lineedit.h"
class QGridLayout;
class QString;
class QLineEdit;
class QComboBox;
class QRadioButton;
class QTextEdit;
class QCheckBox;
class QButtonGroup;
class QToolButton;
class CLineEdit;
class Xml :QObject
{
public:
    Xml(QGridLayout* widget);
    ~Xml();
    void createPageXml(QGridLayout* widget);
    void create_xml(QString filename);
    void delete_data();


public slots:
 //      void button_desktop_Judge(int id);
//    void button_patch_Judge(int id);
//    void button_essential_Judge(int id);
//    void process_Protocol(int index);


public:
    QString strQToolButton,m_strLicense, m_strCategory, m_strDepends, m_strDense;
    QLineEdit  *lsdesc, *lsdesc_en, *l_name, *l_tel, *l_pg, *l_email, *l_desc, *l_desc_en, *lprotocol;
    CLineEdit* sname_en, *sname,*l_1, *l_2, *l_3, *lExec, * larch;
    QComboBox* scategory, *sdenpendence, *sdense, *sProtocol;
    QRadioButton* r_enterprise, *r_individual,*r_isDesktop, *r_isNoDesktop,*r_isPatch,*r_isNoPatch,*r_isEssential,*r_isNoEssential;
    Textedit* tldesc;
    QTextEdit* tldesc_en;
    QCheckBox* root_user,*sudo_user,*ipc_user,* s_n_access,* network_access,* xorg_access,* manager_user,* m_g_user,* variable_system,* manager_device,* m_i_open,
    * manager_app,* setting_system,* conf_change,* c_a_c,* d_u_a_c,* underly_access,* f_c_d,* diagnostic,* dump,* a_d_c,* m_s_c,* b_t_c,* tasks_get,* search_global,
    * p_b_k,* clear_maste,* s_a_m,* f_f_m,* f_u_m,* b_f_r,* s_i_r,* logs_read,* reboot,* c_b_r,* l_p_s,* time_set,* z_t_s,* credentials_use,* h_b_c,* b_h_r,* b_h_w,* s_w_a,
    * s_w_c ,* bluetooth,* manager_bluetooth,* power_device, *clear_master;
    QButtonGroup* grp1, *grp2,*grp3;
    QGridLayout* gbox_other, *gbox_info;
    QWidget* s_other;
    QString str_soft_hp;
    QToolButton * tExec;

};

#endif // XML_H
